package operation;

import data.DataBase;

public class Registerlist implements IOperation {
    @Override
    public void work(DataBase dataBase) {
        System.out.println("已预约人员名单！");
        int currentSize=dataBase.getContainSize();
        for (int i = 0; i < currentSize; i++) {
            System.out.println(dataBase.getData(i));
        }
    }
}
